package com.xszx.service.impl;

import com.xszx.bean.LoginUser;
import com.xszx.dao.LoginDao;
import com.xszx.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author MarFloral
 * @date 2022/12/9 13:43
 */
@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    LoginDao loginDao;

    @Override
    public LoginUser selectUserByName(String account) {
        return loginDao.selectUserByName(account);
    }

    @Override
    public void updatePassword(Map<String, Object> map) {
        loginDao.updatePassword(map);
    }
}
